package com.qf.service.Impl;


import com.qf.dao.CityDao;
import com.qf.service.CityService;
import com.qfedu.entity.City;

import com.qfedu.vo.ResultVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CityServiceImpl implements CityService {

    @Resource
    private CityDao cityDao;

    @Override
    public ResultVo getSonCitys(Integer cid) {
        return ResultVo.getSuccessResultVo("查询成功",cityDao.getSonCitys(cid));
    }

    @Override
    public ResultVo getHotCitys(Integer start, Integer end) {
        return ResultVo.getSuccessResultVo("查询成功",cityDao.getHotCitys(start, end));
    }

    @Override
    public ResultVo getCityByCid(Integer cid) {
        return ResultVo.getSuccessResultVo("查询成功",cityDao.getCityByCid(cid));
    }
}
